menubutton: Remove obsolete private method
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 29 Sep 2020 18:46:18 +0000 (20:46 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 29 Sep 2020 18:58:25 +0000 (20:58 +0200)
It was only added for the fallback app menu in headerbars, which
has been removed in the meantime.

gtk/gtkmenubutton.c
gtk/gtkmenubuttonprivate.h

index bbfaf787336920c8c12cd58ca237554597227217..54fca43b3307ffd873184abd1f7f196511a390f5 100644 (file)
@@ -916,13 +916,6 @@ gtk_menu_button_popdown (GtkMenuButton *menu_button)
   gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (menu_button->button), FALSE);
 }
 
-void
-gtk_menu_button_add_child (GtkMenuButton *menu_button,
-                           GtkWidget     *new_child)
-{
-  gtk_button_set_child (GTK_BUTTON (menu_button->button), new_child);
-}
-
 /**
  * gtk_menu_button_set_create_popup_func:
  * @menu_button: a #GtkMenuButton
index aaddeea39b32d286b1510981bc05e7359406458a..9fb6cee70a7dbcd4c9a9a4977cb969fb791df4c1 100644 (file)
@@ -25,9 +25,6 @@
 
 G_BEGIN_DECLS
 
-void   gtk_menu_button_add_child (GtkMenuButton *button,
-                                  GtkWidget     *child);
-
 G_END_DECLS
 
 #endif /* __GTK_MENU_BUTTON_PRIVATE_H__ */